<HTML xmlns="http://www.w3.org/1999/xhtml">

<head>
    <link href="__PUBLIC__/css/common.css" rel="stylesheet" type="text/css" />
    <include file="Index:header"/>
</head>

<body>
    <present name="message">

        <script>
            art.dialog({
                icon: 'succeed',
                content: '<p class="success"><b><?php echo($message); ?></b></p><br/><p class="jump">等待 <b id="wait" style="color:#f00;"><?php echo($waitSecond); ?></b> 秒后页面将自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> </p>'
            });
        </script>

        <else/>


        <script>
            art.dialog({
                icon: 'error',
                content: '<p class="success"><b><?php echo($error); ?></b></p><br/><p class="jump">等待 <b id="wait" style="color:#f00;"><?php echo($waitSecond); ?></b> 秒后页面将自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> </p>'
            });
        </script>

    </present>
    <script type="text/javascript">
        (function() {
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function() {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>

</body>

</html>
